<?php
if(session_start()) ;
require "lander.php";


// hostname
$dbhost = "localhost";  
// utente per la connessione a MySQL 
$dbuser = "root";
// password per l'autenticazione dell'utente
$dbpassword = "";
// connessione tramite mysql_connect()
$dbname = "lander";

$operation_id = "-1";
if (isset($_SESSION['current_operation'])) $operation_id =$_SESSION['current_operation'];


$mysqli = new mysqli($dbhost, $dbuser, $dbpassword, $dbname);
	$q= "select * from operation_status os,  operation o where o.operation_id = os.operation_id and o.operation_id ='$operation_id';";
 echo "Started: $operation_id. - ".$q;

		
		$result = $mysqli->query($q);
		
 
			echo "<table>";
			echo "...'".MYSQLI_BOTH."'...";
            while ($row = mysqli_fetch_array($result, MYSQLI_BOTH)) {
				
                ?>
				<tr> 
					<td><?php echo($row["operation_id"])?></td><td><?php echo($row["status"])?></td><td><b><?php echo($row["value"])?></b></td>
				</tr>
				<?php
				
            }
			echo "</table>";
 
 
?>